#ifndef __CONDITION_H__
#define __CONDITION_H__

#include <pthread.h>

namespace rocket 
{
class condition
{
public:
    condition(pthread_mutex_t *);
    ~condition();
    void wait();
    void notify_one();
    void notify_all();
private:
    pthread_mutex_t *_lock;
    pthread_cond_t _condition;
};

}

#endif